package com.moyun.mapper.system;

import com.moyun.model.po.system.SysUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author yangboxuan
 * @since 2021-07-01
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {

    /**
     * @return com.moyun.security.entity.SysUserEntity 
     * @Author yangboxuan
     * @Description  查询系统用户和系统角色 sys_user with sys_role
     * @Date 2021/7/7 11:45
     * @Param [userId]
     **/
    SysUserEntity selectUserWithRolesByUserId(@Param("userId") Integer userId);

    /**
     * @return com.moyun.security.entity.SysUserEntity 
     * @Author yangboxuan
     * @Description 查询系统用户和组织角色 sys_user with sys_org_role
     * @Date 2021/7/7 11:46
     * @Param [userId]
     **/
    SysUserEntity selectUserWithOrgRolesByUserId(@Param("userId") String userId);


}
